<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>学习javascript</title>
    </head>
    <body>
        <h1>javascript能够往HTML文档中写入东西</h1>

        <button onclick="myFunction()">点我</button>
        <script>
            function myFunction(){
                document.write(Date());
            }
        </script>
    </body>
</html>